<template>
  <div class="home">
    <router-view class="firstLeval"></router-view>
    <van-tabbar v-model="active" route active-color="red">
      <van-tabbar-item icon="wap-home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/type">分类</van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o" to="/cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="manager-o" to="/profile">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { getBanners } from '@/api/home'
export default {
  name: 'Home',
  data() {
    return {
      active: 0,
    }
  },

  methods: {
    goType() {
      this.$router.push('/type')
    }
  }
}
</script>
<style lang="scss">
.firstLeval {
  height: calc(100% - 100px);
  overflow: auto;
}
</style>
